package megrez.mail.sender.common;

import java.util.ArrayList;
import java.util.List;

/**
 * 邮件发送异常
 *  
 * @author Lucky Yang
 * @since 2.6.9
 */
public class MailSenderException extends RuntimeException {
    private final List<String> params = new ArrayList<>();
    


    public MailSenderException() {
    }

    public MailSenderException(Throwable cause) {
        super(cause);
    }

    public MailSenderException(String message, Throwable cause) {
        super(message, cause);
    }

    public MailSenderException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public MailSenderException(String... params) {
        super();
        this.params.addAll(List.of(params));
    }

    public List<String> getParams() {
        return params;
    }

    
}
